/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * HAPSIEMenuPrincipal.java
 *
 * Created on 23/01/2012, 07:50:32 PM
 */
package Interfaz;

import java.awt.Dimension;
import javax.swing.JDialog;

/**
 *
 * @author erika
 */
public class MenuPrincipal extends javax.swing.JDialog {

    /** Creates new form HAPSIEMenuPrincipal */
    public MenuPrincipal(java.awt.Frame parent, boolean modal) {
        super(parent, modal);
        initComponents();
         
 
    }

  
  
    
    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabel2 = new javax.swing.JLabel();
        botonGestionDeAreas = new javax.swing.JButton();
        botonGestionDeEstandares = new javax.swing.JButton();
        botonCheckList = new javax.swing.JButton();
        botonResultados = new javax.swing.JButton();
        botonAcercaDe = new javax.swing.JButton();
        botonSalir = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setName("menuPrincipal"); // NOI18N
        addWindowListener(new java.awt.event.WindowAdapter() {
            public void windowClosing(java.awt.event.WindowEvent evt) {
                formWindowClosing(evt);
            }
        });

        org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(UsoHAPSIE.HAPSIEApp.class).getContext().getResourceMap(MenuPrincipal.class);
        jLabel2.setText(resourceMap.getString("jLabel2.text")); // NOI18N
        jLabel2.setName("jLabel2"); // NOI18N

        botonGestionDeAreas.setText(resourceMap.getString("botonGestionDeAreas.text")); // NOI18N
        botonGestionDeAreas.setName("botonGestionDeAreas"); // NOI18N
        botonGestionDeAreas.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                botonGestionDeAreasActionPerformed(evt);
            }
        });

        botonGestionDeEstandares.setText(resourceMap.getString("botonGestionDeEstandares.text")); // NOI18N
        botonGestionDeEstandares.setName("botonGestionDeEstandares"); // NOI18N
        botonGestionDeEstandares.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                botonGestionDeEstandaresActionPerformed(evt);
            }
        });

        botonCheckList.setText(resourceMap.getString("botonCheckList.text")); // NOI18N
        botonCheckList.setName("botonCheckList"); // NOI18N
        botonCheckList.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                botonCheckListActionPerformed(evt);
            }
        });

        botonResultados.setText(resourceMap.getString("botonResultados.text")); // NOI18N
        botonResultados.setName("botonResultados"); // NOI18N
        botonResultados.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                botonResultadosActionPerformed(evt);
            }
        });

        botonAcercaDe.setText(resourceMap.getString("botonAcercaDe.text")); // NOI18N
        botonAcercaDe.setName("botonAcercaDe"); // NOI18N
        botonAcercaDe.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                botonAcercaDeActionPerformed(evt);
            }
        });

        botonSalir.setText(resourceMap.getString("botonSalir.text")); // NOI18N
        botonSalir.setName("botonSalir"); // NOI18N
        botonSalir.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                botonSalirActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(172, 172, 172)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 177, Short.MAX_VALUE)
                    .addComponent(botonSalir, javax.swing.GroupLayout.DEFAULT_SIZE, 177, Short.MAX_VALUE)
                    .addComponent(botonAcercaDe, javax.swing.GroupLayout.DEFAULT_SIZE, 177, Short.MAX_VALUE)
                    .addComponent(botonResultados, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 177, Short.MAX_VALUE)
                    .addComponent(botonCheckList, javax.swing.GroupLayout.DEFAULT_SIZE, 177, Short.MAX_VALUE)
                    .addComponent(botonGestionDeEstandares, javax.swing.GroupLayout.DEFAULT_SIZE, 177, Short.MAX_VALUE)
                    .addComponent(botonGestionDeAreas, javax.swing.GroupLayout.DEFAULT_SIZE, 177, Short.MAX_VALUE))
                .addGap(172, 172, 172))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(41, 41, 41)
                .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(12, 12, 12)
                .addComponent(botonGestionDeAreas, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(botonGestionDeEstandares, javax.swing.GroupLayout.PREFERRED_SIZE, 64, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(botonCheckList, javax.swing.GroupLayout.PREFERRED_SIZE, 64, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(botonResultados, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(19, 19, 19)
                .addComponent(botonAcercaDe, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(26, 26, 26)
                .addComponent(botonSalir, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(34, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

private void botonGestionDeAreasActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botonGestionDeAreasActionPerformed
// TODO add your handling code h
   gestionDeAreas.setLocationRelativeTo(this);
    gestionDeAreas.setVisible(true);
    
// ventanaGestionDeAreas.setVisible(true);
}//GEN-LAST:event_botonGestionDeAreasActionPerformed

private void botonGestionDeEstandaresActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botonGestionDeEstandaresActionPerformed
 gestionDeEstandares.setLocationRelativeTo(this);
  gestionDeEstandares.setVisible(true);
    
}//GEN-LAST:event_botonGestionDeEstandaresActionPerformed

private void botonCheckListActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botonCheckListActionPerformed
  checkList.setLocationRelativeTo(this);
  checkList.setVisible(true);
    
}//GEN-LAST:event_botonCheckListActionPerformed

private void formWindowClosing(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_formWindowClosing
    System.exit(0 );
}//GEN-LAST:event_formWindowClosing

private void botonResultadosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botonResultadosActionPerformed
  resultados.setLocationRelativeTo(this);
  resultados.setVisible(true);
    
}//GEN-LAST:event_botonResultadosActionPerformed

private void botonAcercaDeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botonAcercaDeActionPerformed
 acercaDe.setLocationRelativeTo(this);
 acercaDe.setVisible(true);
    
}//GEN-LAST:event_botonAcercaDeActionPerformed

private void botonSalirActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botonSalirActionPerformed
 System.exit(0);
}//GEN-LAST:event_botonSalirActionPerformed

    /**
     * @param args the command line arguments
     */
    
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton botonAcercaDe;
    private javax.swing.JButton botonCheckList;
    private javax.swing.JButton botonGestionDeAreas;
    private javax.swing.JButton botonGestionDeEstandares;
    private javax.swing.JButton botonResultados;
    private javax.swing.JButton botonSalir;
    private javax.swing.JLabel jLabel2;
    // End of variables declaration//GEN-END:variables

 private JDialog gestionDeAreas = new GestionDeAreas(this);   
 private JDialog gestionDeEstandares = new GestionDeEstandares(this);
 private JDialog resultados = new Resultados(this);
 private JDialog acercaDe = new AcercaDe(this);
 private JDialog checkList = new CheckList(this);
 
 
}
